package main

import (
	"context"
	"flag"
	"fmt"
	"git.huoys.com/middle-business/xds/internal/model"
	"git.huoys.com/middle-end/kratos/pkg/conf/paladin"
)
var (
	ctx = context.Background()
)
func main() {
	flag.Parse()
	cfg := &model.RouteConfig{}
	paladin.Init(nil)
	err := paladin.Watch("route.txt", cfg)
	fmt.Println(err)
	fmt.Println(cfg)
	for _, r := range cfg.Routes {
		fmt.Println(r)
	}
}
